Public Const A_NORMAL = &H80 'Normal sFile - No read/write restrictions
Public Const A_COMPRESSED = &H800 'Compressed file
Public Const A_NORMAL_ARCHIVE = &HFE 'Normal, Archive
Public Const A_ALL = &HFF 'Normal, Archive, Read-Only, Hidden, System
' definition for drive type
Public Const DRIVE_UNKNOWN = 0
Public Const DRIVE_NO_ROOT_DIR = 1
Public Const DRIVE_REMOVABLE = 2
Public Const DRIVE_FIXED = 3
Public Const DRIVE_REMOTE = 4
Public Const DRIVE_CDROM = 5
Public Const DRIVE_RAMDISK = 6
' definition for sFile sort
Public Const SORT_ASCENDING = 1
Public Const SORT_DESCENDING = 2
Public Const SORT_CASE_SENSITIVE = 4
Public Const SORT_CASE_INSENSITIVE = 8
' definition for sFile I/O
Public Const EOFILE = -1
Public Const SEEK_CUR = 1
Public Const SEEK_END = 2
Public Const SEEK_SET = 0
' definition for sFile uucp
Public Const MODE_UUENCODE = 0
Public Const MODE_UUDECODE = 1
' definition for error type for SplitFile
Public Const SPLIT_BAD_PARTSIZE = -1
Public Const SPLIT_BAD_SOURCE_FILENAME = -2
Public Const SPLIT_BAD_TARGET_FILENAME = -3
Public Const SPLIT_CANT_OPEN_SOURCE = -4
Public Const SPLIT_CANT_CREATE_TARGET = -5
' definition for error type for CutFile
Public Const CUT_BAD_POSITION = -1
Public Const CUT_BAD_SOURCE_FILENAME = -2
Public Const CUT_BAD_TARGET1_FILENAME = -3
Public Const CUT_BAD_TARGET2_FILENAME = -4
Public Const CUT_POSITION_TOO_BIG = -5
Public Const CUT_CANT_OPEN_SOURCE = -6
Public Const CUT_CANT_CREATE_TARGET1 = -7
Public Const CUT_CANT_CREATE_TARGET2 = -8
' definition for error type for GetFileDateTime
Public Const GET_FILE_DT_NO_ERROR = -1
Public Const GET_FILE_DT_CANT_OPEN_FILE = 8
Public Const GET_FILE_DT_CANT_GET_TIME = 9
Public Const GET_FILE_DT_CANT_CNV_CREATION = 1
Public Const GET_FILE_DT_CANT_CNV_LAST_ACCESS = 2
Public Const GET_FILE_DT_CANT_CNV_LAST_WRITE = 4
' definition for error type for SetFileDateTime
Public Const SET_FILE_DT_NO_ERROR = -1
Public Const SET_FILE_DT_CANT_OPEN_FILE = 8
Public Const SET_FILE_DT_CANT_SET_TIME = 9
Public Const SET_FILE_DT_CANT_CNV_CREATION = 1
Public Const SET_FILE_DT_CANT_CNV_LAST_ACCESS = 2
Public Const SET_FILE_DT_CANT_CNV_LAST_WRITE = 4
' definition for error type for FileMergeExt
Public Const FILE_MERGE_NO_ERROR = -1
Public Const FILE_MERGE_EMPTY_TARGET_FILENAME = -2
Public Const FILE_MERGE_EMPTY_BAD_TARGET_FILENAME = -3
Public Const FILE_MERGE_CANT_SET_FILE_BUFFER = -4
Public Const FILE_MERGE_CANT_CREATE_TARGET_FILE = -5
Public Const FILE_MERGE_ERROR_READING_FILE = -6
Public Const FILE_MERGE_ERROR_WRITING_FILE = -7
Public Const FILE_MERGE_ERROR_BAD_WRITE = -8
Public Const FILE_MERGE_BAD_FILE_AT_POSITION = -10
' structure for sFile attributes
Type FileAttributeType
ErrNo As Integer
Archive As Integer
Hidden As Integer
Normal As Integer
ReadOnly As Integer
SubDir As Integer
System As Integer
Compressed As Integer
End Type
' structure for split path
Type tagSPLITPATH
nDrive As String
nDir As String
nName As String
nExt As String
End Type
' structure for GetFileDateTime & SetFileDateTime
Type tagSYSTEMTIME
wYear As Integer
wMonth As Integer
wDayOfWeek As Integer
wDay As Integer
wHour As Integer
wMinute As Integer
wSecond As Integer
wMilliseconds As Integer
End Type
Declare Function cAllSubDirectories Lib "mcdsk-32.dll" (ByVal lpBaseDirectory As String, nDir As Long) As String
Declare Function cChDir Lib "mcdsk-32.dll" (ByVal lpDir As String) As Integer
Declare Function cChDrive Lib "mcdsk-32.dll" (ByVal lpDrive As String) As Integer
Declare Function cCmpFileAttribute Lib "mcdsk-32.dll" (ByVal File1 As String, ByVal File2 As String) As Integer
Declare Function cCmpFileContents Lib "mcdsk-32.dll" (ByVal File1 As String, ByVal File2 As String, ByVal Sensitivity As Integer) As Integer
Declare Function cCmpFileSize Lib "mcdsk-32.dll" (ByVal File1 As String, ByVal File2 As String) As Integer
Declare Function cCmpFileTime Lib "mcdsk-32.dll" (ByVal File1 As String, ByVal File2 As String) As Integer
Declare Function cCountDirectories Lib "mcdsk-32.dll" (ByVal lpFilename As String) As Integer
Declare Function cCountFiles Lib "mcdsk-32.dll" (ByVal lpFilename As String) As Integer
Declare Function cCutFile Lib "mcdsk-32.dll" (ByVal SourceFile As String, ByVal TargetFile1 As String, ByVal TargetFile2 As String, ByVal CutPosition As Long) As Long
Declare Function cFileSize Lib "mcdsk-32.dll" (ByVal lpFilename As String) As Long
Declare Function cIsFileArchive Lib "mcdsk-32.dll" (ByVal nFileName As String) As Integer
Declare Function cIsFileEmpty Lib "mcdsk-32.dll" (ByVal nFileName As String) As Integer
Declare Function cIsFileFlag Lib "mcdsk-32.dll" (ByVal nFileName As String, ByVal nStatus As Integer) As Integer
Declare Function cIsFileHidden Lib "mcdsk-32.dll" (ByVal nFileName As String) As Integer
Declare Function cIsFileNormal Lib "mcdsk-32.dll" (ByVal nFileName As String) As Integer
Declare Function cIsFileReadOnly Lib "mcdsk-32.dll" (ByVal nFileName As String) As Integer
Declare Function cIsFileSubDir Lib "mcdsk-32.dll" (ByVal nFileName As String) As Integer
Declare Function cIsFileSystem Lib "mcdsk-32.dll" (ByVal nFileName As String) As Integer
Declare Function cIsFileCompressed Lib "mcdsk-32.dll" (ByVal nFileName As String) As Integer
Declare Function cIsFilenameValid Lib "mcdsk-32.dll" (ByVal nFileName As String) As Integer
Declare Function cKillDir Lib "mcdsk-32.dll" (ByVal lpFilename As String) As Integer
Declare Function cKillDirFilesAll Lib "mcdsk-32.dll" (ByVal lpDir As String, ByVal lpMask As String) As Integer
Declare Function cKillDirs Lib "mcdsk-32.dll" (ByVal lpDir As String, ByVal HeaderDirectory As Integer) As Integer
Declare Function cKillFile Lib "mcdsk-32.dll" (ByVal lpFilename As String) As Integer
Declare Function cKillFileAll Lib "mcdsk-32.dll" (ByVal lpFilename As String) As Integer
Declare Function cKillFiles Lib "mcdsk-32.dll" (ByVal lpFilename As String) As Integer
Declare Function cKillFilesAll Lib "mcdsk-32.dll" (ByVal lpFilename As String) As Integer
Declare Function cMakeDir Lib "mcdsk-32.dll" (ByVal lpFilename As String) As Integer
Declare Function cMakeMultipleDir Lib "mcdsk-32.dll" (ByVal lpFilename As String) As Integer
Declare Function cFileResetAllAttrib Lib "mcdsk-32.dll" (ByVal nFileName As String) As Integer
Declare Function cFileResetArchive Lib "mcdsk-32.dll" (ByVal nFileName As String) As Integer
Declare Function cFileResetFlag Lib "mcdsk-32.dll" (ByVal nFileName As String, ByVal nStatus As Integer) As Integer
Declare Function cFileResetHidden Lib "mcdsk-32.dll" (ByVal nFileName As String) As Integer
Declare Function cFileResetReadOnly Lib "mcdsk-32.dll" (ByVal nFileName As String) As Integer
Declare Function cFileResetSystem Lib "mcdsk-32.dll" (ByVal nFileName As String) As Integer
Declare Function cFileSetAllAttrib Lib "mcdsk-32.dll" (ByVal nFileName As String) As Integer
Declare Function cFileSetArchive Lib "mcdsk-32.dll" (ByVal nFileName As String) As Integer
Declare Function cFileSetAttrib Lib "mcdsk-32.dll" (ByVal nFileName As String, nFileAttribute As Any) As Integer